import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

plt.rcParams['font.sans-serif'] = ['STHeiti', 'PingFang SC', 'Heiti TC', 'Microsoft YaHei', 'SimHei', 'Arial Unicode MS']  
plt.rcParams['axes.unicode_minus'] = False

df = pd.read_csv("data-7.csv")

# 绘图
plt.figure(figsize=(7, 4))
plt.plot(df["load"])
plt.ylim(0, 12000)
plt.xlabel("时间")
plt.ylabel("充电负荷")
plt.xticks(range(0, 21, 4))  # 不显示x轴刻度
plt.yticks([])  # 不显示x轴刻度
# plt.title("充电负荷趋势图")
plt.tight_layout()
plt.show()
